<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>需要管理员权限 - {{ config('app.name', 'WP Lara Press') }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            margin: 0;
            padding: 0;
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .container {
            background: white;
            border-radius: 10px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            padding: 40px;
            text-align: center;
            margin: 20px;
        }

        .icon {
            font-size: 4rem;
            margin-bottom: 20px;
            color: #e74c3c;
        }

        h1 {
            color: #2c3e50;
            margin-bottom: 15px;
            font-size: 1.8rem;
            font-weight: 600;
        }

        p {
            color: #7f8c8d;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .btn {
            background: #0073aa;
            color: white;
            padding: 12px 24px;
            text-decoration: none;
            border-radius: 5px;
            display: inline-block;
            margin-top: 20px;
            font-weight: 500;
            transition: background-color 0.3s ease;
        }

        .btn:hover {
            background: #005177;
            text-decoration: none;
            color: white;
        }

        .info-box {
            background: #f8f9fa;
            border-left: 4px solid #0073aa;
            padding: 15px;
            margin: 20px 0;
            text-align: left;
            border-radius: 0 5px 5px 0;
        }

        .info-box strong {
            color: #2c3e50;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="icon">🔒</div>
        <h1>访问被拒绝</h1>
        <p>您需要WordPress管理员权限才能访问API文档。</p>

        <div class="info-box">
            <strong>权限要求：</strong><br>
            • 必须登录WordPress后台<br>
            • 必须具有管理员权限（manage_options）
        </div>

        <p>请先登录WordPress后台，然后再访问此页面。</p>

        <a href="{{ $loginUrl }}" class="btn">
            🚀 登录WordPress后台
        </a>

        <p style="margin-top: 30px; font-size: 0.9rem; color: #95a5a6;">
            <strong>WP Lara Press</strong> - WordPress Laravel API Plugin
        </p>
    </div>
</body>

</html>